#!/usr/bin/env python
# -*- coding:utf-8 -*-
# @FileName :cp2_2.9.py
# @Time     :2023/6/20 23:29
# @Author   :Ash
from collections import namedtuple

if __name__ == "__main__":
    City = namedtuple('City', 'name country population coordinates')
    tokyo = City('Tokyo', 'JP', 36.933, (35.689722, 139.691667))
    print(tokyo)
    print(tokyo.population)
    print(tokyo.coordinates)
    print(tokyo[1])
